package Modelo;

import javax.swing.table.AbstractTableModel;
import Vista.principal;
public class ModeloTabla extends AbstractTableModel {
	private static final long serialVersionUID = 1L;
final String []nombreCol={"cedula","nombre","apellido","Nota Fila"};
    Object [][] valoresCol=new Object[principal.seccion.getAlumnos().size()][4];
	public int getRowCount() {
	return valoresCol.length;
	}

	public int getColumnCount() {
		return nombreCol.length;
	}

	public     Object  getValueAt(int fil, int col) {
		return valoresCol[fil][col];
	}
	public String getColumnName(int col){
		return nombreCol[col];
	}

	public void setValoresCol(Object campo,int fil,int col) {
		this.valoresCol[fil][col] = campo;
	}


}
